#ifndef GARDENER_H
#define GARDENER_H

#include "element/basereceiver.h"
#include <head/g_pch_core.h>

class Gardener : public QObject
{
    Q_OBJECT
public:
    explicit Gardener(QObject *parent = nullptr);
    ~Gardener();

    void startReceiver();
    void stopReceiver();

    void onReceived(QByteArray data);

signals:

public slots:
private:
    BaseReceiver *receiver;
    QThread recvThread;
};

#endif // GARDENER_H
